﻿<phone:PhoneApplicationPage 
    x:Class="WPLEDClient.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="PageTitle" FontSize="24" Text="杭州地铁二号线控制系统" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
            <TextBlock Name="txtLog" FontSize="12"></TextBlock>
        </StackPanel>
        <StackPanel Grid.Row="1">
            <StackPanel Orientation="Horizontal">
                <toolkit:ListPicker Header="LED"  Name="IPAdd" Width="180" Height="Auto" HorizontalAlignment="Left" >
                    <ListBoxItem Content="192.168.58.198"/>
                    <ListBoxItem Content="192.168.0.101"/>
                    <ListBoxItem Content="192.168.58.198"/>
            </toolkit:ListPicker> 
            <TextBox Name="LEDID" Text="1" VerticalAlignment="Bottom"></TextBox>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Button Name="btn_PowerOn" Click="btn_PowerOn_Click">开屏</Button>
                <Button Name="btn_PowerOnWithIP" Click="btn_PowerOnWithIP_Click">显示IP</Button>
                <Button Name="btn_PowerOff" Click="btn_PowerOff_Click">关屏</Button>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Button Name="btn_SetLight" Click="btn_SetLight_Click">亮度</Button>
                <TextBox Name="txtBright" Text="3"></TextBox>
                <Button Name="btn_GetLight" Click="btn_GetLight_Click">获取亮度</Button>
                <Button Name="btn_AdjustTime" Click="btn_AdjustTime_Click">校时</Button>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Button Name="btn_FlashContent" Click="btn_FlashContent_Click">常规</Button>
                <Button Name="btn_ReSetContent" Click="btn_ReSetContent_Click">复屏</Button>
                <Button Name="btn_NormalContent" Click="btn_NormalContent_Click">普通</Button>
                <Button Name="btn_Urgent" Click="btn_Urgent_Click">紧急</Button>                
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="10,0,0,0">
                <TextBox Name="nFont1" Text="宋体"></TextBox>
                <TextBox Name="nFontS1" Text="12"></TextBox>
                <TextBox Name="nText1" Width="400" Text="#y年#m月#d日 星期#w #h时#n分"></TextBox>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="10,0,0,0">
                <TextBox Name="nFont2" Text="楷体"></TextBox>
                <TextBox Name="nFontS2" Text="24"></TextBox>
                <TextBox Name="nText21" Width="400" Text="杭州地铁二号线欢迎您"></TextBox>
                
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="160,0,0,0">
                <TextBox Name="nText22" Width="400" Text="武林广场站C出入口"></TextBox>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="10,0,0,0">
                <TextBox Name="nFont3" Text="黑体"></TextBox>
                <TextBox Name="nFontS3" Text="12"></TextBox>
                <TextBox Name="nText3" Width="400" Text="禁止携带宠物"></TextBox>
            </StackPanel>
        </StackPanel>
        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"></Grid>
    </Grid>
 
</phone:PhoneApplicationPage>